package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.OrderInfoDto;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderSetting;
import com.itheima.vo.OrderSuccessfulVo;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author jshstart
 * @creat 2020-11-15 13:06
 */
public interface OrderService extends IService<Order> {
    Long submitOrder(OrderInfoDto orderInfoDto);

//     Order exist(String orderDate);
//     Order exist(Long memberId);
     Order exist(Long memberId,String orderDate);

    OrderSuccessfulVo findOrderInfo(Long id);

    Map selectSetmealPercent();


    void updateByOrderNo(Map<String,String> param);

    Integer selStatus(String orderNo);

    void deleteByOrderNo(String orderNo);

    int findTodayOrderNumber(String formatDate);

    int findTodayVisitsNumber(String formatDate);

    int findThisWeekOrderNumber(int thisweek);

    int findThisWeekVisitsNumber(int thisweek);

    int findThisMonthOrderNumber(String thismonth);

    int findThisMonthVisitsNumber(String thismonth);

    Order findByOrderNo(String orderNo);
}
